<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='下载记录';
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<div class="center">
	<?php
	while($r=$empire->fetch($sql))
	{
		if(empty($class_r[$r[classid]][tbname]))
		{continue;}
		$nr=$empire->fetch1("select title,titlepic,isurl,titleurl,classid from {$dbtbpre}ecms_".$class_r[$r[classid]][tbname]." where id='$r[id]' limit 1");
		//标题链接
		$titlelink=sys_ReturnBqTitleLink($nr);

	?>
	<div class="scfm">
		<div class="scfm_bg">
			<div class="scfm_img">
				<a href="<?=$titlelink?>" target="_blank"><img src="<?=$r[titlepic]?>"/></a>
				<a class="btn btn_xz" href="javascript:;">下载</a>
			</div>
			<div class="sc_title">
				<a href='<?=$titlelink?>' target='_blank'> <?=$r[title]?></a><span class="sc_c_info"><?=date("Y-m-d",$r[truetime])?>下载</span>
			</div>
		</div>
	</div>
    <?
	}
	?>
	<?=$returnpage?>
</div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>